package api

import (
	"github.com/gin-gonic/gin"
	"zy/api/handler"
	"zy/api/hiddleware"
)

func LoadRouter(r *gin.Engine) {
	r.Use(hiddleware.OPRS())
	api := r.Group("/api")
	{
		exam := api.Group("/exam")
		{
			exam.POST("addExam", handler.AddExam)
			exam.POST("uploads", handler.Uploads)
			exam.GET("listExam", handler.ListExam)
		}
	}

}
